<% ads = get_res_ads %>
<% ad = ads[0] %><% unless ad.nil? %><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><br/><% end %>
<%if get_user_type.to_i == 0%>
  <%if @show_ts %>
    设置成功!存<%= link_to "书签",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>哦!<%="<br/>"%>免费!<%= link_to "必看免责声明!",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%>
  <%else%>
    <%= link_to "收藏书签 hg3000.cn",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><%="<br/>"%>免费!<%= link_to "必看免责声明!",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%>
  <%end%>
  <br/>
<%end%>
<%if get_user_type.to_i == 1%>
  <%if @show_ts %>设置成功!存<%= link_to "书签",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>哦!<br/><%end%>
  免费!<%= link_to "必看免责声明!",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/>
<%end%>
<%if get_user_type.to_i == 2%><%= link_to "个性设置",:controller => 'user_cfg', :action => 'user_cfg_setup',:resource => @resource,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %> <%= link_to "重要提示",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/><%end%>
<%#= @resource.name+"[#{get_pic_num @resource}P]" %>
<% @img_arry.each_with_index  do |img_src,index|  %>
  <img alt="正在打开.请稍侯" src="<%= img_src %>"  />
  <%=  "<br/>" %>
  <%if get_user_type.to_i != 2%>
    <%= link_to "下载" ,
      :controller => 'col',
      :action => 'download',:resource => @resource,:sid=> my_sid,:index=>index,:type=>$small,:page_for => @page_for,:go_page=>@go_page,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><%=" "%>
    .<%= link_to "收藏" ,
      :controller => 'user_cfg',
      :action => 'user_collect_sucess',:resource => @resource,:sid=> my_sid,:index=>index,:page_for => @page_for,:go_page=>@go_page,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
    .<%= link_to "高清浏览",:controller => 'col', :action => 'show_big',:id => @col.id,:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => 2,:pp_num =>@pp_num,:cn=>my_cn,:p_s =>2 %>
  <%else%>
    <%= link_to "免费下载" ,
      :controller => 'col',
      :action => 'download',:resource => @resource,:sid=> my_sid,:index=>index,:type=>$small,:page_for => @page_for,:go_page=>@go_page,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><%=" "%>
    .<%= link_to "免费收藏" ,
      :controller => 'user_cfg',
      :action => 'user_collect_sucess',:resource => @resource,:sid=> my_sid,:index=>index,:page_for => @page_for,:go_page=>@go_page,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
  <%end%>
  <%="<br/>"%>
<% end %>
<%= will_paginate @img_arry,:type => 'wml',:params => {:resource => @resource.id,:sid => my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn } %>
<% if @img_arry.total_pages > 1 %>
  <input type='text' format='*N' size='2' name='jp' />
  <anchor>
    跳页<go method='get' href='/col/show_small'>
      <postfield name='jump_page' value='$(jp)'/>
      <postfield name='sid' value='<%= my_sid %>'/>
      <postfield name='resource' value='<%= @resource.id %>'/>
      <postfield name='total_pages' value='<%= @img_arry.total_pages %>'/>
      <postfield name='page_for' value='<%= @page_for %>'/>
      <postfield name='go_page' value='<%= @go_page %>'/>
      <postfield name='img_style' value='<%= @img_style %>'/>
      <postfield name='pp_style' value='<%= @pp_style %>'/>
      <postfield name='pp_num' value='<%= @pp_num %>'/>
      <postfield name='cn' value='<%=my_cn%>'/>
    </go>
  </anchor>
  <%=  "<br/>" %>
  <%= page_entries_info @img_arry,:type => 'wml',:is_img => true %>
<% end %>
<%=  "<br/>" %>
<%if get_user_type.to_i != 2%>
  <%="每页"%><%= link_to "2",:controller => 'col', :action => 'img_style_to',:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num => 2,:p_n=>2,:cn=>my_cn %>|<%= link_to "4",:controller => 'col', :action => 'img_style_to',:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num => 4,:p_n=>4,:cn=>my_cn %>|<%= link_to "6",:controller => 'col', :action => 'img_style_to',:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num => 6,:p_n=>6,:cn=>my_cn %>|<%= link_to "8",:controller => 'col', :action => 'img_style_to',:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num => 8,:p_n=>8,:cn=>my_cn %><%="张图"%><%="<br/>"%>
<%end%>
<% if @tag_arry.size > 0 %>
  <%=h "标签:"%>
  <% @tag_arry.each do |rt| %>
    <%= link_to rt.tag.name ,
      :controller => 'col',
      :action => 'series',:tag => rt.tag,:sid=>my_sid,:go_page => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
  <% end %>
  .<%= link_to "更多" ,
    :controller => 'col',
    :action => 'more_series',:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
  <%=  "<br/>" %>
<% end %>
<% if !@res_prev.nil? || !@res_next.nil? || !@res_nnext.nil?%>
  <%= "【相关套图推荐】" %><%= link_to "更多",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
<% end %>
<% unless @res_prev.nil? %>
  <%=  "<br/>" %>
  <%= link_to @res_prev.name+"[#{get_pic_num @res_prev}P]" ,
    :controller => 'col',
    :action => 'show_small',:resource => @res_prev.id,:sid=>my_sid,:go_page => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
<% end %>
<% unless @res_next.nil? %>
  <%=  "<br/>" %>
  <%= link_to @res_next.name+"[#{get_pic_num @res_next}P]" ,
    :controller => 'col',
    :action => 'show_small',:resource => @res_next.id,:sid=>my_sid,:go_page => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
<% end %>
<% unless @res_nnext.nil? %>
  <%=  "<br/>" %>
  <%= link_to @res_nnext.name+"[#{get_pic_num @res_nnext}P]" ,
    :controller => 'col',
    :action => 'show_small',:resource => @res_nnext.id,:sid=>my_sid,:go_page => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
<% end %>
<% ads = get_gd_ads %>
<%if !ads.nil? && ads.size > 0%>
  <br/><%= "【炫酷好玩地带】" %><%= link_to "更多",:controller => 'col', :action => 'more_ads',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>
  <% ad = ads[0] %><% unless ad.nil? %><br/><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><% end %>
  <% ad = ads[1] %><% unless ad.nil? %><br/><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><% end %>
  <% ad = ads[2] %><% unless ad.nil? %><br/><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><% end %>
<%end%>
<% c_d = '0'
if @resource.oppose_num.to_i != 0 || @resource.support_num.to_i != 0
  c_d = (@resource.support_num*100/(@resource.oppose_num+@resource.support_num)).to_s
end
%>
<br/><%= "【投票】鉴赏度:#{c_d}%" %><br/>
<%= link_to "鲜花",:controller => 'col', :action => 'show_small',:id => @col.id,:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:oper_type => 1,:cn=>my_cn %>[<%=@resource.support_num%>]
<%= link_to "鸡蛋",:controller => 'col', :action => 'show_small',:id => @col.id,:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:oper_type => 2,:cn=>my_cn %>[<%=@resource.oppose_num%>]<br/>
<%= "点击人气:#{@resource.click_num}"%><br/>
<% if @user_comments.size > 0 %>
  【最新评论】更多<%= link_to "[#{@uc_count}]" ,:controller => 'user_cfg',:action => 'user_comment',:resource => @resource,:sid=> my_sid,:page_for => @page_for,:go_page=>@go_page,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
  <% @user_comments.each_with_index do|com,index| %>
    <%= link_to "#{get_nickname(com)}:#{get_words(com.comment,6)}"  ,:controller => 'user_cfg',:action => 'user_comment',:resource => @resource,:sid=> my_sid,:page_for => @page_for,:go_page=>@go_page,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
  <% end %>
<% end %>
<input type="text" size="12" name="comment" value="" />
<anchor>
  提交评论<go method='get' href='/col/show_small/'>
    <postfield name='comment' value='$(comment)'/>
    <postfield name='sid' value='<%= my_sid %>'/>
    <postfield name='resource' value='<%= @resource.id %>'/>
    <postfield name='total_pages' value='<%= @img_arry.total_pages %>'/>
    <postfield name='page_for' value='<%= @page_for %>'/>
    <postfield name='go_page' value='<%= @go_page %>'/>
    <postfield name='img_style' value='<%= @img_style %>'/>
    <postfield name='pp_style' value='<%= @pp_style %>'/>
    <postfield name='pp_num' value='<%= @pp_num %>'/>
    <postfield name='cn' value='<%=my_cn%>'/>
  </go>
</anchor>